Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace MessageRunMode with a struct #373

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Conversation

magicxyyz
Copy link
Contributor

@magicxyyz magicxyyz commented Nov 8, 2024

This PR:

  • replaces MessageRunMode enum with MessageRunContext struct, that apart from run mode now contains wasm cache tag and wasm targets list
  • Refactors passing of wasm targets and wasm cache tag, so they are no longer wired through cachingDB and ethdb.Database

Resolves NIT-2827

@cla-bot cla-bot bot added the s CLA signed label Nov 8, 2024
@@ -213,7 +213,7 @@ func (pre *Prestate) Apply(vmConfig vm.Config, chainConfig *params.ChainConfig,
rejectedTxs = append(rejectedTxs, &rejectedTx{i, errMsg})
continue
}
msg, err := core.TransactionToMessage(tx, signer, pre.Env.BaseFee, core.MessageCommitMode)
msg, err := core.TransactionToMessage(tx, signer, pre.Env.BaseFee, core.NewMessageCommitContext(nil)) // TODO: do we need to specify wasm targets here if chainConfig.IsArbitrum == false?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to specify wasm targets here if chainConfig.IsArbitrum == false?

@magicxyyz magicxyyz marked this pull request as ready for review November 15, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s CLA signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant